package com.fdb.efp.nls.service.dao;

import com.fdb.efp.nls.service.domain.QuotaLimitPrd;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * DAO Interface: 产品额度限制表
 *
 * @author gcb
 * @date 2020-06-12
 */
public interface QuotaLimitPrdDao {
    /**
     * 新增数据
     *
     * @param quotaLimitPrd
     * @return
     */
    int insert(QuotaLimitPrd quotaLimitPrd);

    /**
     * 根据主键删除信息
     *
     * @param quotaLimitPrd
     * @return
     */
    int deleteByPk(QuotaLimitPrd quotaLimitPrd);

    /**
     * 根据主键更新信息
     *
     * @param quotaLimitPrd
     * @return
     */
    int updateByPk(QuotaLimitPrd quotaLimitPrd);

    /**
     * 根据主键查询详情
     *
     * @param quotaLimitPrd
     * @return
     */
    QuotaLimitPrd queryByPk(QuotaLimitPrd quotaLimitPrd);

    List<QuotaLimitPrd> queryByCondition(QuotaLimitPrd quotaLimitPrd);

    int updateQuotaStsByPk(QuotaLimitPrd quotaLimitPrd);

    List<QuotaLimitPrd> queryAllByPage(QuotaLimitPrd quotaLimitPrd);


    List<QuotaLimitPrd> queryPrdActiveQuota(@Param("prdId") String prdId, @Param("currentDate") String currentDate);
    List<QuotaLimitPrd> queryAllCurrPrdByPage(QuotaLimitPrd quotaLimitPrd);
}